/*************************************************************************
	> File Name: test1.c
	> Author: 
	> Mail: 
	> Created Time: 一  7/ 8 15:53:23 2024
 ************************************************************************/

#include<stdio.h>

int main() {
    char str[105], tmp[105];
    scanf("%[^\n]", str);
    int n;
    n = sprintf(tmp, "| %s |", str);
    for(int i = 0; i < n; i++) printf("*");
    printf("\n");
    printf("%s\n", tmp);
    for(int i = 0; i < n; i++) printf("*");
    printf("\n");
    return 0;
}
